package hos.util.log;

import android.util.Log;

/**
 * <p>Title: DefaultLogDelegateImpl </p>
 * <p>Description:  </p>
 * <p>Company: www.mapuni.com </p>
 *
 * @author : 蔡俊峰
 * @version : 1.0
 * @date : 2023-02-08 14:05
 */
public class DefaultLogDelegateImpl implements LogX.LogDelegate {

    protected String getTAG() {
        return "Log";
    }

    @Override
    public void d(Object... contents) {
        if (isDebug()) {
            Log.d(getTAG(), processBody(contents));
        }
    }

    @Override
    public void dTag(String tag, Object... contents) {
        if (isDebug()) {
            Log.d(tag, processBody(contents));
        }
    }

    @Override
    public void i(Object... contents) {
        if (isDebug()) {
            Log.i(getTAG(), processBody(contents));
        }
    }

    @Override
    public void iTag(String tag, Object... contents) {
        if (isDebug()) {
            Log.i(tag, processBody(contents));
        }
    }

    @Override
    public void w(Object... contents) {
        if (isDebug()) {
            Log.w(getTAG(), processBody(contents));
        }
    }

    @Override
    public void wTag(String tag, Object... contents) {
        if (isDebug()) {
            Log.w(tag, processBody(contents));
        }
    }

    @Override
    public void e(Object... contents) {
        if (isDebug()) {
            Log.e(getTAG(), processBody(contents));
        }
    }

    @Override
    public void eTag(String tag, Object... contents) {
        if (isDebug()) {
            Log.e(tag, processBody(contents));
        }
    }

    @Override
    public void file(Object content) {
        if (isDebug()) {
            Log.d(getTAG(), processBody(content));
        }
    }

    @Override
    public void file(String tag, Object content) {
        if (isDebug()) {
            Log.d(tag, processBody(content));
        }
    }

    @Override
    public void json(Object content) {
        if (isDebug()) {
            Log.d(getTAG(), processBody(content));
        }
    }

    @Override
    public void json(String tag, Object content) {
        if (isDebug()) {
            Log.d(tag, processBody(content));
        }
    }

    @Override
    public void xml(String content) {
        if (isDebug()) {
            Log.d(getTAG(), processBody(content));
        }
    }

    @Override
    public void xml(String tag, String content) {
        if (isDebug()) {
            Log.d(tag, processBody(content));
        }
    }


}
